import fetch from 'common/src/utils/fetch'

/**
 * 本地审批 查询申请详情
 */
export function teachingClassApproveHistory(teachingClassExchangeId) {
  return fetch({
    url: '/api/arrangementservice/teachingClassApprove/history',
    method: 'get',
    params: {
      teachingClassExchangeId: teachingClassExchangeId
    }
  });
}

/**
 * 本地审批 审批接口
 * @param {} data 
 */
export function teachingClassApprove(data) {
  return fetch({
      url: '/api/arrangementservice/teachingClassApprove/approve',
      method: 'post',
      data: data
  });
}

/**
 * 本地审批 审批接口
 * @param {} data 
 */
export function teachingClassApproveBatch(data) {
  return fetch({
      url: '/api/arrangementservice/teachingClassApprove/approve/batch',
      method: 'post',
      data: data
  });
}